#!/usr/bin/python3
# -*- coding: utf8 -*-
# Date   : 2021/02/12
# Author : Kwan
# Email  : allenxian@live.com
# Blog   : https://my.oschina.net/u/4173440

from flask import Blueprint, render_template, redirect, url_for
from flask_login import login_required
from flasky.common import manager_required


# 报表功能
report = Blueprint(name='report', import_name='flasky', url_prefix='/report', template_folder='views/templates')


@report.route('/')
@login_required
@manager_required
def default():
    """
    数据报表
    """
    return redirect(url_for('report.across'))


@report.route('/across')
@login_required
@manager_required
def across():
    """
    出入报表
    """
    return render_template('report/default.html')


@report.route('/paid')
@login_required
@manager_required
def paid():
    """
    收费报表
    """
    return render_template('report/default.html')
